#include "SearchTask.h"

SearchTask::SearchTask(const std::string & filename)
    : m_type(ESearchTypeFile)
    , m_filename(filename)
{

}

SearchTask::SearchTask(ByteArray & byteArray)
    : m_type(ESearchTypeByteArray)
    , m_byteArray(byteArray)
{

}

SearchTask::ByteArray & SearchTask::getByteArray()
{
    return m_byteArray;
}

const std::string  & SearchTask::getFilename() const
{
    return m_filename;
}

SearchType SearchTask::getType() const
{
    return m_type;
}
